<?php

namespace app\admin\validate;

use think\Validate;

class Article extends Validate
{
    protected $rule = [
        'title' => 'require',
        'cate_id' => 'require',
       // 'auther' => 'require',
       // 'img' => 'require',
      //  'score' => 'require',
        'url' => 'url',
    ];

    protected $message = [
        'title.require' => '名称不能为空',
        'cate_id.require' => '分类不能为空',
        //'auther.require' => '作者不能为空',
        //'img.require' => '图片不能为空',
        //'score.require' => '来源不能为空',
        'url.url' => '链接不是个有效的链接',
    ];

   
}